import request from '../utils/request';

// 获取学生信息
export const fetchData = query => {
    return request({
        url: './table.json',
        method: 'get',
        params: query
    });
};

// 获取图书信息
export const fetchBooksData = query => {
    return request({
        url: './books.json',
        method: 'get',
        params: query
    });
};

// 获取管理员信息
export const fetchManagersData = query => {
    return request({
        url: './managers.json',
        method: 'get',
        params: query
    });
};


export const fetCredit = query => {
    return request({
        url: './credit.json',
        method: 'get',
        params: query
    });
};



export const fetDataList = () => {
    return request({
        url: 'http://172.22.10.90:3000/dataList',
        method: 'get'
    });
};
